package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author  zhangxiaojia
 * @Date 2020-07-20
 */

@Data
@ApiModel
@TableName("tb_holiday" )
public class TbHoliday implements Serializable {

	private static final long serialVersionUID =  1680243377936938499L;

	/**
	 * 主键
	 */
   	 @TableId(value="id",type = IdType.AUTO )
	private Integer id;

	/**
	 * 日期
	 */
   	 @TableField("date" )
	 @ApiModelProperty(value ="日期")
	 @DateTimeFormat(pattern = "yyyy-MM-dd")
	 @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date date;

	/**
	 * 类别（1工作日2节假日）
	 */
   	 @TableField("type" )
	 @ApiModelProperty(value ="类别（1工作日2节假日）")
	private Integer type;

}
